<div class="flexform">
    <?php
    $form = $this->beginWidget('CActiveForm', array(
        'id' => 'product-gold-form',
        'enableAjaxValidation' => false
            ));
    ?>

    <div class="row">
        <?php echo $form->labelEx($model, 'gold_game'); ?>
        <?php echo $form->dropDownList($model, 'gold_game', array('' => '') + ProductCategory::model()->getGameSelect()); ?>
        <?php echo $form->error($model, 'gold_game', array('class' => 'form-msg-error-advanced')); ?>
    </div>

    <div class="row">
        <?php echo $form->labelEx($model, 'gold_name'); ?>
        <?php echo $form->textField($model, 'gold_name', array('size' => 50, 'maxlength' => 50)); ?>
        <?php echo $form->error($model, 'gold_name', array('class' => 'form-msg-error-advanced')); ?>
    </div>

    <div class="row">
        <?php echo $form->labelEx($model, 'gold_num'); ?>
        <?php echo $form->textField($model, 'gold_num', array('size' => 10, 'maxlength' => 10)); ?>
        <?php echo $form->error($model, 'gold_num', array('class' => 'form-msg-error-advanced')); ?>
    </div>

    <div class="row">
        <?php echo $form->labelEx($model, 'gold_unit'); ?>
        <?php echo $form->dropDownList($model, 'gold_unit', array(''=>'')+ProductGold::$unit_array); ?>
        <?php echo $form->error($model, 'gold_unit', array('class' => 'form-msg-error-advanced')); ?>
    </div>

    <div class="row">
        <?php echo $form->labelEx($model, 'gold_discount'); ?>
        <?php echo $form->textField($model, 'gold_discount', array('size' => 10, 'maxlength' => 10)); ?>
        <?php echo $form->error($model, 'gold_discount', array('class' => 'form-msg-error-advanced')); ?>
    </div>

    <div class="action">
        <?php echo CHtml::submitButton($model->isNewRecord ? '创建' : '保存'); ?>
    </div>
    <?php $this->endWidget(); ?>
</div><!-- form -->
<div class="clear"></div>